package com.nervenets.web.controller.user;

import com.nervenets.web.controller.TokenParams;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = true)
@Data
public class UserUpdatePasswordParams extends TokenParams {
    @ApiModelProperty(value = "旧密码", required = true)
    @NotNull(message = "旧密码不能为空")
    private String oldPwd;
    @ApiModelProperty(value = "新密码", required = true)
    @NotNull(message = "新密码不能为空")
    private String newPwd;
    @ApiModelProperty(value = "重复新密码", required = true)
    @NotNull(message = "重复新密码不能为空")
    private String newPwd2;
}
